<h2 class="contentTitle">添加客户</h2>
<form method="post" action="/customer/addcustomer/" class="pageForm required-validate" onsubmit="return validateCallback(this)">
<div class="pageContent">
    {% csrf_token %}
	<div class="pageFormContent" layoutH="97">
		<dl>
			<dt>客户名称：</dt><dd><input name="customername" class="required" type="text"></dd>
		</dl>
        <dl>
			<dt>客户公司：</dt><dd><input name="companyname" class="required" type="text"></dd>
		</dl>
        <dl>
            <dt>客户行业：</dt>
			<dd>
				<select class="combox" name="industry">
                    {% for foo in industrylist %}
					<option value="{{ foo.id }}">{{ foo.industryname }}</option>
                    {% endfor %}
				</select>
			</dd>
        </dl>
        <dl>
            <dt>客户级别：</dt>
			<dd>
				<select class="combox" name="level">
                    {% for foo in levellist %}
					<option value="{{ foo.id }}">{{ foo.levelname }}</option>
                    {% endfor %}
				</select>
			</dd>
        </dl>
		<dl>
			<dt>性别：</dt>
            <dd>
                <input type="radio" name="gender" value="1" checked="checked">男
                <input type="radio" name="gender" value="0">女
            </dd>
		</dl>
		<dl>
			<dt>年龄：</dt><dd><input name="age" class="required digits" min="10" max="99"/></dd>
		</dl>
        <dl>
			<dt>QQ：</dt><dd><input name="qq" class="required digits"/></dd>
		</dl>
		<dl>
			<dt>电话：</dt><dd><input name="mobile" class="required phone digits"/></dd>
		</dl>
        <dl>
			<dt>Email：</dt><dd><input name="email" class="required email"/></dd>
		</dl>
        <dl>
			<dt>旺旺：</dt><dd><input name="wangwang" class="required"/></dd>
		</dl>
		<dl>
			<dt>生日：</dt>
			<dd>
				<input name="birthday" class="date" value="2011-03-21" dateFmt="yyyy-MM-dd" type="text">
				<a href="javascript:void(0)" class="inputDateButton">选择</a>
			</dd>
		</dl>
		<dl>
			<dt>部门名称：</dt>
			<dd>
				<input class="" id="inputOrg1" name="partment" type="text"/>
			</dd>
		</dl>
		<dl>
			<dt>客户类型：</dt>
			<dd>
				<select name="custype" class="combox">
					<option value="1">个人</option>
					<option value="2" selected="selected">公司</option>
				</select>
			</dd>
		</dl>
		<dl>
			<dt>客户状态：</dt>
			<dd>
				<select class="combox" name="custatus">
					<option value="1">有效</option>
					<option value="2">无效</option>
				</select>
			</dd>
		</dl>
        <dl>
			<dt>客户组别：</dt>
			<dd>
				<select class="combox" name="status">
                    {% for foo in customergroup %}
					<option value="{{ foo.id }}">{{ foo.groupname }}</option>
                    {% endfor %}
				</select>
			</dd>
		</dl>
{#		<dl>#}
{#			<dt>附件：</dt>#}
{#			<dd>#}
{#				<input name="attachment.id" value="" type="hidden">#}
{#				<input class="readonly" name="attachment.fileName" value="" readonly="readonly" type="text"/>#}
{#				<a class="btnAttach" href="javascript:void(0)" lookupGroup="attachment" width="560" height="300" title="附件">附件</a>#}
{#			</dd>#}
{#		</dl>#}
		<dl class="nowrap">
			<dt>描述：</dt>
			<dd>
				<textarea class="editor" name="description" rows="8" cols="95"></textarea>
			</dd>
		</dl>
	</div>

	<div class="formBar">
		<ul>
			<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
			<li><div class="button"><div class="buttonContent"><button class="close" type="button">关闭</button></div></div></li>
		</ul>
	</div>

</div>
</form>
